﻿@model WebPortal.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}
@{
    Layout = "_LogOnLayout.cshtml";
}

<h2>登录</h2>
<p>
    请输入用户名和密码
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "登录失败，请重新输入。")

@using (Html.BeginForm()) {

            <div>
        <fieldset>
            <legend>登录信息</legend>

            <div class="editor-label">
                用户名
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
               密码
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                记住我
            </div>

            <p>
                <input type="submit" value="登录" />
            </p>
        </fieldset>
    </div>      
    
    <table class="details-table">
    <tr><td colspan="4">如何使用银行请款模块[测试]</td></tr>
    <tr>
        <th>用户名</th>
        <td>user1</td>
        <th>描述</th>
        <td>请款人用户名</td>
    </tr>
    <tr>
        <th>用户名</th>
        <td>user2</td>
        <th>描述</th>
        <td>部门负责人用户名</td>
    </tr>
    <tr>
        <th>用户名</th>
        <td>user3</td>
        <th>描述</th>
        <td>财务部用户名</td>
    </tr>
    <tr>
        <th>用户名</th>
        <td>user4</td>
        <th>描述</th>
        <td>监事长用户名</td>
    </tr>
    <tr>
        <th>用户名</th>
        <td>user5</td>
        <th>描述</th>
        <td>总裁用户名</td>
    </tr>
    <tr><td colspan="4">测试：所有用户密码为： 123</td></tr>
</table>
    <div>
        <img src="@Url.Content("~/Content/images/bankbill-flow.jpg")" alt="workflow" />
    </div>
    
}
